package edu.zut.controller;


import edu.zut.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AccountController {


    @Autowired
    private AccountService accountService;


    @GetMapping("/transfer")
    public String transfer(Integer from, Integer to, double balance) {
        accountService.transfer(from, to, balance);
        return "转账成功";
    }


}
